
public class SEfaculty extends Students{
	public int age;
	public String name;
	//成员变量school与父类中的同名,但是在Trycasting2中,s.school得到的是父类的school，而非此类的school
	public String school = "subclass school";
	public String get() { return this.school; }
	
	public SEfaculty(String name, int age, String school){
		super(school);
		this.name = name; this.age = age;
	}
	public void info(){
		System.out.println("from Multimediafac class");
		System.out.println("My name is " + this.name + ", I'm " + this.age);
	}
}

